import { Layout } from '@fl/utils/routerHelper'

const elevatorApplyRoute: AppRouteRecordRaw = {
    children: [
        // #region
        {
            component: () => import('@/pages/retrofit-elevator/apply/index.vue'),
            meta: {
                title: '加装电梯申请',
                permission: ['加装申请-列表'],
            },
            name: 'retrofit-elevator-business-apply',
            path: 'apply',
        },
        {
            component: () => import('@/pages/retrofit-elevator/history/index.vue'),
            meta: {
                title: '加装历史数据',
                permission: ['历史数据-列表'],
            },
            name: 'retrofit-elevator-business-history',
            path: 'history',
        },
        {
            component: () => import('@/pages/retrofit-elevator/community-list/index.vue'),
            meta: {
                title: '区属街道社区列表',
                permission: ['区属数据-列表'],
            },
            name: 'retrofit-elevator-community-list',
            path: 'community-list',
        },
        {
            component: () => import('@/pages/retrofit-elevator/requirement/inventory-data-list.vue'),
            meta: {
                title: '清册数据列表',
                permission: ['清册数据-列表'],
            },
            name: 'inventory-data-list',
            path: 'inventory-data-list',
        },
        {
            component: () => import('@/pages/retrofit-elevator/requirement/building-list.vue'),
            meta: {
                title: '小区楼栋维护',
                activeMenu: '/retrofit-elevator/business/inventory-data-list',
                hidden: true,
                noTagsView: true,
                permission: ['清册数据-楼栋维护'],
            },
            name: 'building-list',
            path: 'building-list',
        },
        {
            component: () => import('@/pages/retrofit-elevator/requirement/unit-list.vue'),
            meta: {
                title: '楼栋单元维护',
                activeMenu: '/retrofit-elevator/business/inventory-data-list',
                hidden: true,
                noTagsView: true,
                permission: ['清册数据-楼栋维护'],
            },
            name: 'unit-list',
            path: 'unit-list',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        icon: 'i-gg:data',
        title: '业务办理',
        permission: ['加装申请-列表', '清册数据-列表', '历史数据-列表', '区属数据-列表', '清册数据-楼栋维护'],
    },
    name: 'business',
    path: 'business',
}

export default elevatorApplyRoute
